package kr.pe.osdev.domain;

import kr.pe.osdev.annotation.PrintToString;

public class Answer extends BaseObject {
    
    private static final long serialVersionUID = -2147079983827907797L;
    
    @PrintToString
    private String sid;
    @PrintToString
    private String answer;
    @PrintToString
    private String answerCode;
    @PrintToString
    private String questionSid;
    @PrintToString
    private String useYn;

    public Answer() {
    }
    
    public Answer(String answer) {
        this.answer = answer;
    }
    
    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        setValue(new Answer(text));
    }
    
    public String getSid() {
        return sid;
    }
    public void setSid(String sid) {
        this.sid = sid;
    }
    public String getAnswer() {
        return answer;
    }
    public void setAnswer(String answer) {
        this.answer = answer;
    }
    public String getAnswerCode() {
        return answerCode;
    }
    public void setAnswerCode(String answerCode) {
        this.answerCode = answerCode;
    }
    public String getQuestionSid() {
        return questionSid;
    }
    public void setQuestionSid(String questionSid) {
        this.questionSid = questionSid;
    }
    public String getUseYn() {
        return useYn;
    }
    public void setUseYn(String useYn) {
        this.useYn = useYn;
    }
}